package com.car.dal.dao.tiyanke;

import java.util.List;
import com.car.dal.dao.ibatis.IbatisCommonDao;
import com.car.dal.object.Tiyanke;
import com.car.util.Page;

public class TgTiyankeImpl extends IbatisCommonDao<Tiyanke, Long> implements TgTiyankeDao {

	@Override
	public Integer getCountByCenter(Tiyanke tiyanke) {
		return this.queryForInteger("getCountByCenter", tiyanke);
	}

	@Override
	public List<Tiyanke> findTiyankeList(Tiyanke tiyanke, Page page) {
		tiyanke.setFirstrownum(page.getFirstrownum());
		tiyanke.setPagesize(page.getPagesize());
		return this.queryForEntityList(Tiyanke.class,"findTiyankeList", tiyanke);
	}


}
